package com.github.xml.modules;

import javax.xml.bind.annotation.*;

/**
 * @author  Crab2Died
 */


@XmlAccessorType(XmlAccessType.FIELD)   //
@XmlRootElement(name = "user")          //根目录
@XmlType(propOrder = {                  //
        "name",
        "age",
        "sex"
})
public class User {

    private String name;

    private Integer age;

    private String sex;

    public User() {
    }

    public User(String name, Integer age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
